import { BrowserRouter as Router, Route } from 'react-router-dom'
import Login from './pages/Login'
import Layout from './pages/Layout'
import './App.css'
// 在app组件中配置路由
const App = () => {
  return (
    <Router>
      <div className="App">
        {/* 路由测试 */}
        {/* <Link to="/home">首页</Link>
        <br></br>
        <Link to="/login">登录页</Link> */}
        {/* 配置路由 */}
        <Route path="/home" component={Layout}></Route>
        <Route path="/login" component={Login}></Route>
      </div>
    </Router>
  )
}

export default App
